{include file="general/header.tpl"}
{include file="admin/url/url_add_path.tpl"}
<div id="main">
	{include file="admin/url/url_add_validate.tpl"}
	{if $url_entry_success[0] == 'single'}
		{capture name="tiny_url"}{get_scheme()}://{if $url_entry_success[2]}{$url_entry_success[2]}{else}{#RewriteHost#}{/if}/{$url_entry_success[1]}{/capture}
		<div class="success">
			A new tiny URL has been generated with the keyword {$url_entry_success[1]}.<br />
			Click on this button to copy this new short URL:&nbsp;<script type="text/javascript">createCopyButton('{$smarty.capture.tiny_url}');</script><br />
		</div>
	{elseif $url_entry_success[0] == 'multiple' || $url_entry_success[0] == 'upload'}
		<div class="success">
			{$url_entry_success[1]} new tiny URL{if $url_entry_success[1] > 1}s{/if} have been generated with their own keyword.<br />
			Click on this button to copy {if $url_entry_success[1] > 1}these{else}this{/if} new short URL{if $url_entry_success[1] > 1}s{/if}:&nbsp;<script type="text/javascript">createCopyButton('{$url_entry_success[2]}');</script><br />
			{if $url_entry_failed}
				But, {$url_entry_failed} failed because their generated keyword already exists (which is rare when generating one, but it happens), so the system skipped them. Try to add them back again.<br />
			{/if}
		</div>
	{/if}
	{include file="admin/url/url_add_form.tpl"}
</div>
{include file="general/left.tpl"}
{include file="general/footer.tpl"}